namespace SimpleWebServices.Web.UI
{
    using System.Xml.Serialization;

    [XmlRoot("content")]
    public sealed class HtmlContent
    {
        [XmlAttribute("type")]
        public string TypeName
        {
            get;
            set;
        }

        [XmlText]
        public string Value
        {
            get;
            set;
        }

        public override string ToString()
        {
            return this.Value;
        }
    }
}